package com.rq.adapter;

import android.view.View;

import com.rq.rvlibrary.BaseAdapter;
import com.rq.rvlibrary.BaseViewHolder;

public class ExamplePurpleViewHolder extends BaseViewHolder {

  public ExamplePurpleViewHolder(View itemView) {
    super(itemView);
  }

  @Override
  public int inflateLayoutId() {
    return R.layout.item_purple;
  }

  @Override
  public void fillData(BaseAdapter adapter, int position, Object o) {
    super.fillData(adapter, position, o);
    if (o instanceof String) {
      setItemText(R.id.txt, "Holder2>>" + o);
    } else {
      setItemText(R.id.txt, "Holder2>>" + o);
    }
  }

}
